package main

import "fmt"

func main() {

	items := make([]int, 100)

	for i := range items {
		items[i] = i
	}

	workerChan := make(chan int)

	for _, v := range items {
		go func(i int) {
			workerChan <- i
		}(v)
	}

	for {
		fmt.Println(<-workerChan)
	}
}
